package cn.yunhe.video.dao;

import cn.yunhe.video.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface IVideoDao extends BaseMapper<Video> {
    /**
     * 根据id查询视频的信息
     * @param id
     * @return
     */
    Video query(int id);

    /**
     * 根据id修改视频的信息
     * @param id
     * @return
     */
    int delLike(int id);

    int addLike(int id);


}
